paned: Don't use a grab
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 Mar 2019 22:55:00 +0000 (18:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 17 Mar 2019 22:55:00 +0000 (18:55 -0400)
It does not seem necessary for proper functioning
of the drag handle.

gtk/gtkpaned.c

index c09b3d9142af309e6ed412ed2a1736a31612173e..cc20a759ba1001741c5782716bd34b5e2634df8b 100644 (file)
@@ -35,7 +35,6 @@
 #include "gtkgesturesingle.h"
 #include "gtkgizmoprivate.h"
 #include "gtkintl.h"
-#include "gtkmain.h"
 #include "gtkmarshalers.h"
 #include "gtkorientableprivate.h"
 #include "gtkprivate.h"
@@ -768,7 +767,6 @@ gesture_drag_begin_cb (GtkGestureDrag *gesture,
         priv->drag_pos = start_y - handle_area.origin.y;
 
       priv->panning = TRUE;
-      gtk_grab_add (GTK_WIDGET (paned));
 
       gtk_gesture_set_state (GTK_GESTURE (gesture),
                              GTK_EVENT_SEQUENCE_CLAIMED);
@@ -804,7 +802,6 @@ gesture_drag_end_cb (GtkGestureDrag *gesture,
   if (!priv->panning)
     gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_DENIED);
 
-  gtk_grab_remove (GTK_WIDGET (paned));
   priv->panning = FALSE;
 }